﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="AdminSendMail.aspx.cs" Inherits="Aandelendelen.Admin.AdminSendMail" %>

<%@ Register Src="/Controls/TopControl.ascx" TagName="TopControl" TagPrefix="uc1" %>
<%@ Register Src="/Controls/MenuControl.ascx" TagName="MenuControl" TagPrefix="uc5" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title>AandelenDelen</title>
    <link href="/Css/Common.css" rel="stylesheet" type="text/css" />

<script language="JavaScript" type="text/javascript" src="/Script/WebRTE/html2xhtml.js"></script>
<script language="JavaScript" type="text/javascript" src="/Script/WebRTE/richtext_compressed.js"></script>

    
<script language="javascript" type="text/javascript">
    function ShowPreview(source, dest) {
        var csource = document.getElementById(source);
        var cdest = document.getElementById(dest);
        cdest.innerHTML = csource.value;
    }

    function GetRTE(content, preview) {
        updateRTEs();

        var crte = theForm.rte1; //asp.net trick...EG  document.form1.rte1;
        var ccontent = document.getElementById(content);

        ccontent.value = crte.value;

        ShowPreview(content, preview);
    }
</script>
</head>
<body>
    <form id="form1" runat="server">
    <div class="common">
		<uc1:TopControl ID="TopControl1" runat="server" />
		<uc5:MenuControl id="MenuControl1" runat="server"></uc5:MenuControl>
		<br />
		<table>
			<tr>
				<td>
					<asp:DropDownList ID="ddlSubject" runat="server" Width="439px" AutoPostBack="True">
					</asp:DropDownList><br />
					<span>Subject:</span><asp:TextBox ID="tbCustomSubject" runat="server" MaxLength="64"></asp:TextBox>
				</td>
				<td>
					<span>Preview</span>
				</td>
			</tr>
			<tr>
				<td>
					<asp:TextBox ID="tbContent" runat="server" Height="292px" TextMode="MultiLine" Width="439px"></asp:TextBox>
				</td>
				<td style="border: 1px solid Black; width: 439px" align="left" valign="top">
					<span id="lblTest"></span>
				</td>
			</tr>
		</table>
		<br />

		<asp:Button ID="btnPreview" runat="server" Text="Preview" UseSubmitBehavior="False" />
		<asp:Button ID="btnSend" runat="server" Text="Send" />
		
		<script language="JavaScript" type="text/javascript">

		    initRTE("/Images/WebRTE/", "/Script/WebRTE/", "", false);
		    var rte1 = new richTextEditor('rte1');
		    rte1.html = '';

		    //enable all commands for demo
		    rte1.cmdFormatBlock = true;
		    rte1.cmdFontName = true;
		    rte1.cmdFontSize = true;
		    rte1.cmdIncreaseFontSize = true;
		    rte1.cmdDecreaseFontSize = true;

		    rte1.cmdBold = true;
		    rte1.cmdItalic = true;
		    rte1.cmdUnderline = true;
		    rte1.cmdStrikethrough = true;
		    rte1.cmdSuperscript = true;
		    rte1.cmdSubscript = true;

		    rte1.cmdJustifyLeft = true;
		    rte1.cmdJustifyCenter = true;
		    rte1.cmdJustifyRight = true;
		    rte1.cmdJustifyFull = true;

		    rte1.cmdInsertHorizontalRule = true;
		    rte1.cmdInsertOrderedList = true;
		    rte1.cmdInsertUnorderedList = true;

		    rte1.cmdOutdent = true;
		    rte1.cmdIndent = true;
		    rte1.cmdForeColor = true;
		    rte1.cmdHiliteColor = true;
		    rte1.cmdInsertLink = true;
		    rte1.cmdInsertImage = true;
		    rte1.cmdInsertSpecialChars = true;
		    rte1.cmdInsertTable = true;
		    rte1.cmdSpellcheck = true;

		    rte1.cmdCut = true;
		    rte1.cmdCopy = true;
		    rte1.cmdPaste = true;
		    rte1.cmdUndo = true;
		    rte1.cmdRedo = true;
		    rte1.cmdRemoveFormat = true;
		    rte1.cmdUnlink = true;

		    rte1.toggleSrc = true;

		    rte1.build();
		    //-->

		</script>
        <asp:Button ID="btnRTECopy" runat="server" Text="Get html" UseSubmitBehavior="False" />
		<hr />
		<a class="common" href="AdminMainForm.aspx">Hoofdmenu</a>
		
	</div>
		
    </form>
</body>
</html>
